#include "Markup.h"
#pragma once

class Address{

public:
	INT id;
	CString	name;
	CString	host;
	INT	port;
	CString	user;
	CString	passwd;
	BOOL login;
	BOOL ssh;
	Address* pNext;
	
	Address();
	Address(INT index);
	~Address();
};


class AddressBook{

	Address* pHead;
	INT index;
	CMarkup xml;
	BOOL bLoadXml;
	public:
	AddressBook();
	~AddressBook();
	void LoadFromXML(CString path);
	void SaveToXML(CString path);
	void Save(Address* add);
	void Delete(Address* add);
	void Save(INT index);
	void Delete(INT index);
	Address* GetHead();
	Address* NewAddress();
};